#ifndef DOUBAN_DOUMAIL_MAILMODULE_H
#define DOUBAN_DOUMAIL_MAILMODULE_H

class QWidget;

namespace Douban
{
	class DoubanUser;
	class DoubanContext;
	class MailModulePrivate;

	class MailModule
	{
		public:
			MailModule(DoubanContext* c, QWidget* parentWidget);
			~MailModule();

			void sendMail(const DoubanUser& toWhom);
			void setUpdateInterval(int millsec);
			void setAutoCloseMailDialog(bool);
		private:
			MailModulePrivate* m_impl;
	};
}

#endif /* MAILMODULE_H_ */
